package com.cyj.dream.admin.model.system.config;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.cyj.dream.core.base.SysBaseEntity;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable;
import java.util.List;

/**
 * @Description: 阿里云短信实体类
 * @BelongsProject: dream-DreamChardonnay
 * @BelongsPackage: com.dream.DreamChardonnay.model.system.config
 * @Author: ChenYongJia
 * @CreateTime: 2021-05-19 10:26
 * @Email: chen87647213@163.com
 * @Version: 1.0
 */
@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
@Entity
@Table(name = "dream_send_message")
@TableName("dream_send_message")
@ApiModel(value = "阿里云短信实体表", description = "dream_send_message 阿里云短信实体表")
public class SendMessage extends SysBaseEntity implements Serializable {

    @ApiModelProperty(value = "短信模板签名")
    private String signName;

    @ApiModelProperty(value = "模板code")
    private String TemplateCode;

    @ApiModelProperty(value = "模板参数")
    private String TemplateParam;

    @JsonIgnore
    @Transient
    @TableField(exist = false)
    @ApiModelProperty(value = "需要发送短信的手机号")
    private String mobile;

    @JsonIgnore
    @Transient
    @TableField(exist = false)
    @ApiModelProperty(value = "需要发送短信的手机号集合")
    private List<String> mobileList;

}
